package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.mongoEntity.UserWithFriends;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserWithFriendsRepository extends MongoRepository<UserWithFriends,String>{
    List<UserWithFriends> findByUseridAndToUseridAndFlag(int userid,int toUserid,int flag);
    List<UserWithFriends> findByToUseridOrderByCreateTimeDesc(int userid);
    UserWithFriends findBy_id(String _id);
    List<UserWithFriends> findByUseridAndFlag(int userid,int flag);
    List<UserWithFriends> findByToUseridAndFlag(int userid,int flag);
}
